package com.hedl.classroom.service;


import com.hedl.classroom.base.exception.CommonResult;
import com.hedl.classroom.model.po.CourseTeacher;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface CourseTeacherService {

    /**
     * 根据课程id查询老师信息
     * @param courseId  课程id
     * @return  返回老师信息
     */
    List<CourseTeacher> queryCourseTeacher(Long courseId);

    /**
     *  新增/修改 任课老师
     * @param courseTeacher 新增任课老师信息
     * @return  返回新任课老师信息
     */
    CourseTeacher saveCourseTeacher(CourseTeacher courseTeacher);

    /**
     * 删除任课老师
     * @param courseId  课程id
     * @param teacherId 任课老师id
     * @return  是否成功
     */
    CommonResult deleteTeacher(Long courseId,Long teacherId);
}
